home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Gadgets / DDocData.h < prev    next >
Encoding:
Text File  |  1998-10-29  |  4.8 KB  |  171 lines  |  [TEXT/CWIE]

  1. // DDocData -- data class for Gadgets
  2.  
  3. #pragma once
  4.  
  5. #include "AMSignaler.h"
  6.  
  7. #define idTriangle        'Trie'
  8. #define idLeftRight        'Left'
  9. #define idRadios        'Rads'
  10. #define idBars        'Bars'
  11. #define idStandard2        'Sta2'
  12. #define idGraphic        'Grac'
  13. #define idSlider        'Slir'
  14. #define idTickMarks        'Tics'
  15. #define idNonDirectional        'Nonl'
  16. #define idLittleArrows        'Lits'
  17. #define idSpinner        'Spir'
  18. #define idVolumeControl        'Voll'
  19. #define idJimSSlider        'Jimr'
  20. #define idStandard3        'Sta3'
  21. #define idIndeterminate        'Inde'
  22. #define idChasingArrows        'Chas'
  23. #define idRectangle        'Rece'
  24. #define idRoundRect        'Rout'
  25. #define idBarberPole        'Bare'
  26. #define idRoundBarber        'Rour'
  27. #define idSmall        'Smal'
  28. #define idLarge        'Lare'
  29. #define idX12345        'X145'
  30. #define idX12345e6        'X126'
  31. #define idPassword        'Pasd'
  32. #define idTheDate        'Thee'
  33. #define idTheTime        'Thee'
  34. #define idStyled        'Styd'
  35.  
  36. //----------
  37. struct DDocData {
  38.     AMSignaler        super;
  39.  
  40.     Boolean        mTriangle;
  41.     Boolean        mLeftRight;
  42.     SInt16        mRadios;
  43.     UInt16        mBars;
  44.     SInt16        mStandard2;
  45.     SInt16        mGraphic;
  46.     SInt16        mSlider;
  47.     SInt16        mTickMarks;
  48.     SInt16        mNonDirectional;
  49.     SInt16        mLittleArrows;
  50.     SInt16        mSpinner;
  51.     SInt16        mVolumeControl;
  52.     SInt16        mJimSSlider;
  53.     SInt16        mStandard3;
  54.     SInt16        mIndeterminate;
  55.     SInt16        mChasingArrows;
  56.     SInt16        mRectangle;
  57.     SInt16        mRoundRect;
  58.     SInt16        mBarberPole;
  59.     SInt16        mRoundBarber;
  60.     Str255        mSmall;
  61.     Str255        mLarge;
  62.     SInt32        mX12345;
  63.     double        mX12345e6;
  64.     Str255        mPassword;
  65.     LongDateRec        mTheDate;
  66.     LongDateRec        mTheTime;
  67.     Str255        mStyled;
  68. };
  69. typedef struct DDocData DDocData;
  70.  
  71. //----------
  72. DDocData*        NewDDocData ();
  73. void    DeleteDDocData        (DDocData*        data);
  74.  
  75. //----------
  76. void        DDocData_Init    (DDocData*        self);
  77. void        DDocData_Free    (DDocData*        self);
  78.  
  79. Boolean        GetTriangle        (DDocData*        self);
  80. void        SetTriangle        (DDocData*        self,
  81.                              Boolean        inValue);
  82. Boolean        GetLeftRight        (DDocData*        self);
  83. void        SetLeftRight        (DDocData*        self,
  84.                              Boolean        inValue);
  85. SInt16        GetRadios        (DDocData*        self);
  86. void        SetRadios        (DDocData*        self,
  87.                              SInt16        inValue);
  88. UInt16        GetBars        (DDocData*        self);
  89. void        SetBars        (DDocData*        self,
  90.                              UInt16        inValue);
  91. SInt16        GetStandard2        (DDocData*        self);
  92. void        SetStandard2        (DDocData*        self,
  93.                              SInt16        inValue);
  94. SInt16        GetGraphic        (DDocData*        self);
  95. void        SetGraphic        (DDocData*        self,
  96.                              SInt16        inValue);
  97. SInt16        GetSlider        (DDocData*        self);
  98. void        SetSlider        (DDocData*        self,
  99.                              SInt16        inValue);
  100. SInt16        GetTickMarks        (DDocData*        self);
  101. void        SetTickMarks        (DDocData*        self,
  102.                              SInt16        inValue);
  103. SInt16        GetNonDirectional        (DDocData*        self);
  104. void        SetNonDirectional        (DDocData*        self,
  105.                              SInt16        inValue);
  106. SInt16        GetLittleArrows        (DDocData*        self);
  107. void        SetLittleArrows        (DDocData*        self,
  108.                              SInt16        inValue);
  109. SInt16        GetSpinner        (DDocData*        self);
  110. void        SetSpinner        (DDocData*        self,
  111.                              SInt16        inValue);
  112. SInt16        GetVolumeControl        (DDocData*        self);
  113. void        SetVolumeControl        (DDocData*        self,
  114.                              SInt16        inValue);
  115. SInt16        GetJimSSlider        (DDocData*        self);
  116. void        SetJimSSlider        (DDocData*        self,
  117.                              SInt16        inValue);
  118. SInt16        GetStandard3        (DDocData*        self);
  119. void        SetStandard3        (DDocData*        self,
  120.                              SInt16        inValue);
  121. SInt16        GetIndeterminate        (DDocData*        self);
  122. void        SetIndeterminate        (DDocData*        self,
  123.                              SInt16        inValue);
  124. SInt16        GetChasingArrows        (DDocData*        self);
  125. void        SetChasingArrows        (DDocData*        self,
  126.                              SInt16        inValue);
  127. SInt16        GetRectangle        (DDocData*        self);
  128. void        SetRectangle        (DDocData*        self,
  129.                              SInt16        inValue);
  130. SInt16        GetRoundRect        (DDocData*        self);
  131. void        SetRoundRect        (DDocData*        self,
  132.                              SInt16        inValue);
  133. SInt16        GetBarberPole        (DDocData*        self);
  134. void        SetBarberPole        (DDocData*        self,
  135.                              SInt16        inValue);
  136. SInt16        GetRoundBarber        (DDocData*        self);
  137. void        SetRoundBarber        (DDocData*        self,
  138.                              SInt16        inValue);
  139. StringPtr    GetSmall        (DDocData*        self);
  140. void        SetSmallStr    (DDocData*        self,
  141.                              Str255        inValue);
  142. void        SetSmallHandle    (DDocData*        self,
  143.                              CharsHandle        inValue);
  144. StringPtr    GetLarge        (DDocData*        self);
  145. void        SetLargeStr    (DDocData*        self,
  146.                              Str255        inValue);
  147. void        SetLargeHandle    (DDocData*        self,
  148.                              CharsHandle        inValue);
  149. SInt32        GetX12345        (DDocData*        self);
  150. void        SetX12345        (DDocData*        self,
  151.                              SInt32        inValue);
  152. double        GetX12345e6        (DDocData*        self);
  153. void        SetX12345e6        (DDocData*        self,
  154.                              double        inValue);
  155. StringPtr    GetPassword        (DDocData*        self);
  156. void        SetPasswordStr    (DDocData*        self,
  157.                              Str255        inValue);
  158. void        SetPasswordHandle    (DDocData*        self,
  159.                              CharsHandle        inValue);
  160. LongDateRec        GetTheDate        (DDocData*        self);
  161. void        SetTheDate        (DDocData*        self,
  162.                              LongDateRec        inValue);
  163. LongDateRec        GetTheTime        (DDocData*        self);
  164. void        SetTheTime        (DDocData*        self,
  165.                              LongDateRec        inValue);
  166. StringPtr    GetStyled        (DDocData*        self);
  167. void        SetStyledStr    (DDocData*        self,
  168.                              Str255        inValue);
  169. void        SetStyledHandle    (DDocData*        self,
  170.                              CharsHandle        inValue);
  171.